<?php 
$getnum = logic('AppHome')->getNum();
//var_dump($getnum['pageview']);
//var_dump($getnum);
//
logic('AppHome')->upNum($getnum);

$date = logic('AppHome')->getDate();
if($date === false) {
    message(logic()->getMessage(),'refresh','error');
}
//var_dump($date);
//$date = pdo_getall('szxh_nmyx_activeexpirty_actionsort');

$row = logic('AppHome')->getRow();
if($row === false) {
    message(logic('AppHome')->getMessage(),'refresh','error');
}

//$row = pdo_fetchcolumn("select count(*) from ".tablename('szxh_nmyx_activeexpirty_actionsort'));
//var_dump($row);

$des = logic('AppHome')->getDes();
/*if($des === false) {
    message(logic('AppHome')->getMessage(),'refresh','error');
}*/
//$des = pdo_getall(getTableName('actionchange'));
/*$arr = array();
foreach ($des as $value) {
    $arr = $value['des'];
}
var_dump($des);
var_dump($arr);*/
$url = $this->createMobileUrl('showpic');
//var_dump($url);
$this->assign('getnum',$getnum);
$this->assign('url',$url);
$this->assign('des',$des);
$this->assign('date', $date);
$this->assign('row', $row);
$this->display('index');
//include $this->template('index');